import 'package:dartz/dartz.dart';
import 'package:netflix_frontend/core/usecase/usecase.dart';
import 'package:netflix_frontend/data/auth/models/login_req_params.dto.dart';
import 'package:netflix_frontend/domain/auth/repositories/auth.dart';
import 'package:netflix_frontend/service_locator.dart';

class LoginUsecase extends Usecase<Either, LoginReqParams> {
  @override
  Future<Either> call({LoginReqParams? params}) async {
    return await sl<AuthRepository>().login(params!);
  }
}

// DONE